﻿using System;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using MySql.Data.MySqlClient;

public class Database
{
    private static Database instance = new Database();
    public Database()
    {

    }

    public static Database getInstance
    {
        get { return instance; }
    }


    public MySqlConnection getConnection()
    {
        string conn = ConfigurationManager.ConnectionStrings["ConnectionString"].ToString();
        return new MySqlConnection(conn);
    }
}